<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <title>Users &laquo; Admin</title>
  <%- include('./layouts/header.ejs')%>
</head>

<body>
  <script>NProgress.start()</script>

  <div class="main">
    <%- include('./layouts/navbar.ejs') %>
    <div class="container-fluid">
      <div class="page-title">
        <h1>商品</h1>
      </div>
      <!-- 有错误信息时展示 -->
      <!-- <div class="alert alert-danger">
        <strong>错误！</strong>发生XXX错误
      </div> -->
      <div class="row">
        <div class="col-md-4">
          <form id="add-user">
            <h2>添加商品</h2>
            <div class="form-group">
              <label class="col-sm-3 control-label">商品图片</label>
              <div class="">
                <label class="form-image">
                  <input id="avatar" type="file">
                  <img src="/images/default.png">
                  <i class="mask fa fa-upload"></i>
                </label>
              </div>
            </div>
            <div class="form-group">
              <label for="num">商品名称</label>
              <input id="num" class="form-control" name="num" type="text" placeholder="商品名称">
            </div>
            <div class="form-group">
              <label for="password">Q币价</label>
              <input id="password" class="form-control" name="password" type="password" placeholder="Q币价">
            </div>
            <div class="form-group">
              <label for="name">微信价</label>
              <input id="name" class="form-control" name="name" type="text" placeholder="微信价">
            </div>
            <div class="form-group">
              <label for="sex">期限</label>
              <label class="radio-inline">
                <input type="text" name="inlineRadioOptions" id="inlineRadio1" placeholder="期限">
              </label>
            </div>


            <div class="form-group">
              <button class="btn btn-primary" type="submit">添加</button>
            </div>
          </form>
        </div>
        <div class="col-md-8">
          <div class="page-action">
            <!-- show when multiple checked -->
            <a class="btn btn-danger btn-sm del-more" href="javascript:;" style="display: none">批量删除</a>
          </div>
          <table class="table table-striped table-bordered table-hover">
            <thead>
              <tr>
                <th class="text-center" width="40"><input type="checkbox" class="check-all"></th>
                <th class="text-center" width="80">头像</th>
                <th>账号</th>
                <th>密码</th>
                <th>用户名</th>
                <th>性别</th>
                <th class="text-center" width="100">操作</th>
              </tr>
            </thead>
            <tbody>
              <!-- <tr>
                <td class="text-center"><input type="checkbox"></td>
                <td class="text-center"><img class="avatar" src="../assets/img/default.png"></td>
                <td>i@zce.me</td>
                <td>zce</td>
                <td>汪磊</td>
                <td>激活</td>
                <td class="text-center">
                  <a href="post-add.php" class="btn btn-default btn-xs">编辑</a>
                  <a href="javascript:;" class="btn btn-danger btn-xs">删除</a>
                </td>
              </tr>
              <tr>
                <td class="text-center"><input type="checkbox"></td>
                <td class="text-center"><img class="avatar" src="../assets/img/default.png"></td>
                <td>i@zce.me</td>
                <td>zce</td>
                <td>汪磊</td>
                <td>激活</td>
                <td class="text-center">
                  <a href="post-add.php" class="btn btn-default btn-xs">编辑</a>
                  <a href="javascript:;" class="btn btn-danger btn-xs">删除</a>
                </td>
              </tr>
              <tr>
                <td class="text-center"><input type="checkbox"></td>
                <td class="text-center"><img class="avatar" src="../assets/img/default.png"></td>
                <td>i@zce.me</td>
                <td>zce</td>
                <td>汪磊</td>
                <td>激活</td>
                <td class="text-center">
                  <a href="post-add.php" class="btn btn-default btn-xs">编辑</a>
                  <a href="javascript:;" class="btn btn-danger btn-xs">删除</a>
                </td>
              </tr> -->
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>

  <%- include('./layouts/aside.ejs') %>
  <%- include('./layouts/footer.ejs') %>
  <!-- 用户显示模板 -->
  <%- include('./template/users_template.ejs') %>
  <!-- 用户信息模板 -->
  <%- include('./template/info_template.ejs') %>
  <!-- 业务代码 -->
  <script src="/lib/ajax/users.js"></script>
</body>

</html>